<?php
/**
 * The Template for displaying all single posts.
 *
 * @since 3.0.0
 */
get_header(); ?>
	<div id="primary" <?php mb_primary_attr(); ?> role="main">
		<header id="post-header">
				
				<h2 class="page-title">
					<div class="home_title"><?php if(function_exists('rdfa_breadcrumb')){ rdfa_breadcrumb(); } ?>
					</div>
				</h2><!-- .page-title -->				
			</header><!-- #archive-header -->
		<?php while ( have_posts() ) : the_post();
	    	global $mb_content_area;
	    	$mb_content_area = 'main';
	    	//echo get_post_format();exit();
	    	if(get_post_format() == 'gallery')
	    	{
	    		get_template_part( 'vcontent', get_post_format() );
	    	}
	    	else
	    	{
	    		get_template_part( 'content', get_post_format() );
	    	}
	    	?>
	    	<!--
			<div id="posts-pagination">
				<h3 class="assistive-text"><?php _e( 'Post navigation', 'magazine-basic' ); ?></h3>
				<div class="previous fl"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> %title', 'magazine-basic' ) ); ?></div>
				<div class="next fr"><?php next_post_link( '%link', __( '%title <span class="meta-nav">&rarr;</span>', 'magazine-basic' ) ); ?></div>
			</div>  #posts-pagination 
			-->

			<?php
			if ( 'attachment' != get_post_type( get_the_ID() ) )
			     comments_template( '', true );
			?>

		<?php endwhile; // end of the loop. ?>
	</div><!-- #primary.c8 -->
	<section id="widget_right" class="widget_right_cc">
		<?php
				if ( is_active_sidebar( 'second-sidebar' ) ) { ?>
					<div id="home_support3" class="<?php echo $header_class; ?>">
						<?php dynamic_sidebar( 'second-sidebar' ); ?>
					</div>
					<?php
				}
				?>
	</section>
<?php get_footer(); ?>